import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;


public class brands {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		WebDriver driver = new InternetExplorerDriver();
         driver.get("http://thetravelcorporation.com");
         driver.findElement(By.linkText("Our Brands")).click();
        
	     driver.findElement(By.xpath("//*[@id='block-views-locations-grid-filter']/div/div/div/div/div/ul/li[3]/div/span")).click();
	   
	     System.out.println(driver.findElement(By.xpath("//body/div[4]/header/div/div/div/div/div/div/div/div/div/table/tbody/tr[2]/td/div/div[2]/div")).isEnabled());
	     System.out.println( driver.findElement(By.xpath("//body/div[4]/header/div/div/div/div/div/div/div/div/div/table/tbody/tr[2]/td[2]/div/div[2]/div")).isSelected());
	                                                     
	}

}
